﻿using LocalTest.Domain.Interfaces;
using LocalTest.Infrastructure.Context;

namespace LocalTest.Infrastructure.Data;

public class UnitOfWork(AppDbContext context) : IUnitOfWork
{
    private AppDbContext Context { get; } = context;


    public void Dispose()
    {
        Context.Dispose();
    }

    public Task<int> SaveChangesAsync()
    {
        return Context.SaveChangesAsync();
    }
}